<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        /* 
          
         */


           var userZS={
             //   左边表示对象的属性,右边表示对象的值
             name:"张三",
             gender:"男",
             bitthyear:2001,
             addr:"花果山",
             isMarried:"否",
             salsry: function() {
                 return 15000;
             }
         }
         for(var objName in userZS){
             //objName：代表对象属性的名称
            //  console.log(objName)
             //通过对象的属性得到对象的值
             console.log(userZS[objName])
         }         
    </script>
</head>
<body>
    
</body>
</html>